from typing import Tuple, AnyStr

from lib.ui import BasePage
from lib.log import Loggers
from utils.Files import read_page_elements

log = Loggers(__name__)


class Baidu(BasePage):

    def open_index(self):
        self.get_url("https://www.baidu.com")

    def login(self, locator: Tuple[AnyStr]):
        self.click(locator)
